package com.tinem.platform.service.robot.im.jpa.entity;

import jakarta.persistence.*;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import java.io.Serializable;
import java.util.Date;

/**
 * @author fzh
 * @version v1
 * @program: platform
 * @className RbacUserMapping
 * @description 用户映射表
 * @site
 * @company
 * @create 2022-12-14
 */
@Entity
@DynamicInsert
@DynamicUpdate
@Table(name="t_rbac_user_mapping")
public class RbacUserMapping implements Serializable,Cloneable{

    @Id
    @Column(name = "c_id",nullable=true)
    private String id;

    @Column(name = "c_client_id",nullable=true)
    private String clientId;

    @Column(name = "c_client_user_id",nullable=true)
    private String clientUserId;

    @Version
    @Column(name = "c_revision",nullable=true)
    private Integer revision;

    @Column(name = "c_created_by",nullable=true)
    private String createdBy;

    @Column(name = "c_created_time",nullable=true,insertable = true,updatable = false)
    private java.util.Date createdTime;

    @Column(name = "c_updated_by",nullable=true)
    private String updatedBy;

    @Column(name = "c_updated_time",nullable=true,insertable = true,updatable = true)
    private java.util.Date updatedTime;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getClientId() {
        return clientId;
    }

    public void setClientId(String clientId) {
        this.clientId = clientId;
    }

    public String getClientUserId() {
        return clientUserId;
    }

    public void setClientUserId(String clientUserId) {
        this.clientUserId = clientUserId;
    }

    public Integer getRevision() {
        return revision;
    }

    public void setRevision(Integer revision) {
        this.revision = revision;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public Date getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(Date createdTime) {
        this.createdTime = createdTime;
    }

    public String getUpdatedBy() {
        return updatedBy;
    }

    public void setUpdatedBy(String updatedBy) {
        this.updatedBy = updatedBy;
    }

    public Date getUpdatedTime() {
        return updatedTime;
    }

    public void setUpdatedTime(Date updatedTime) {
        this.updatedTime = updatedTime;
    }
}